<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
String username=(String)request.getSession().getAttribute("username");
if (username==null || username.length()<3){
	response.sendRedirect("index.jsp");
}
String password=(String)request.getSession().getAttribute("password");
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>UCIT SSL VPN</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META http-equiv=pragma content=no-cache>
<META http-equiv=cache-control content=no-cache>
<META http-equiv=cache-control content=must-revalidate>
<META http-equiv=expires content="Tue, 01 Jun 1999 19:58:02 GMT"><LINK 
href="style/style.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.6000.21283" name=GENERATOR>
<style>
	.vpnface{ 
			width: 597px;
			height: 325px;
			overflow: hidden;
			
			
	}
	.vpnface div{
			float:left;
	}
</style>
<script type="text/javascript">
	 function login()
	 {
		if(check())
		{
		var user="<%=username%>";
		var pass="<%=password%>";
		var exector=document.getElementById("VPNDemo");
		var keyword=exector.Encode("ucitpara,run,"+user+","+pass+",s11");
		//alert(keyword);
		exector.Execute(keyword);
		}
	 }
	 function exit()
	 {
	    var exector=document.getElementById("VPNDemo");
		var keyword=exector.Encode("ucitpara,exit");
		exector.Execute(keyword);
		}
		function check()
		{
			var exector1=document.getElementById("VPNDemo");
			if(exector1.Check()==false)
			{
			  alert("未安装vpn客户端，请刷新页面安装");
			  return false;
		    }
			else
			return true;
		}

</script>
</HEAD>
<BODY bgColor=#ffffff leftMargin=0 background=images/bg.jpg 
topMargin=0 marginheight="0" marginwidth="0">
<FORM id=Login name=Login action="<%=basePath%>VpnLoginProxy.cgi" method=post>
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD vAlign=center align=middle>
      <TABLE cellSpacing=0 cellPadding=0 width=515 align=center border=0>
        <TBODY>
        <div class="vpnface">
        	<div style="position:absolute; z-index:999; left: 8px; top: 28px; width: 569px; height: 197px;">欢迎使用UCIT SSL VPN</div>
        	<div style="position:absolute; z-index:999; left: 104px; top: 254px;">200910702009</div>
        	<div style="position:absolute; z-index:999; left: 104px; top: 286px;">************</div>
        	<img src="images/vpnface.png" border="0" usemap="#Map" />
			<map name="Map" id="Map"><area shape="rect" coords="336,252,409,304" href="javascript:void(0);" onclick="login();return false;" /><area shape="rect" coords="420,254,492,303" href="javascript:void(0);" onclick="exit();return false;" />
			</map>
        </div>
        <div style=" display:none">
        	<OBJECT ID="VPNDemo" CLASSID="CLSID:DA4CF403-6174-439A-8641-FB0F1702F391" CODEBASE="<%=basePath%>VPNDemo.cab#version=1,0,0,1"></OBJECT>
        </div>
        </BODY></HTML>
